package com.crm.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.crm.entity.CrmProject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.crm.model.bo.ProjectPageBo;
import com.crm.model.vo.ProjectReportVo;
import com.crm.model.vo.ProjectVo;
import com.crm.model.vo.ReportCountVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author CRM_SYSTEM
 * @since 2022-03-30
 */
public interface CrmProjectMapper extends BaseMapper<CrmProject> {

    IPage<ProjectVo> queryPage(@Param("pageParam") IPage<ProjectVo> pageParam, @Param("pageBo") ProjectPageBo pageBo);

    List<ReportCountVo> projectMonth(@Param("code") Integer code);

    List<ReportCountVo> projectCount();
}
